home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr44 / ppl4c10.zip / ZCONST.H < prev    next >
Text File  |  1995-02-02  |  2KB  |  98 lines

  1. /* zconst.h */
  2.  
  3. /* zmodem constants */
  4. #define ZPAD     0x2a  /* '*' */
  5. #define ZDLE     0x18  /* ^X  */
  6. #define ZDLEE    0x58
  7. #define ZBIN     0x41  /* 'A' */
  8. #define ZHEX     0x42  /* 'B' */
  9. #define ZBIN32   0x43  /* 'C' */
  10.  
  11. /* header types */
  12. #define ZRQINIT  0x00
  13. #define ZRINIT   0x01
  14. #define ZSINIT   0x02
  15. #define ZACK     0x03
  16. #define ZFILE    0x04
  17. #define ZSKIP    0x05
  18. #define ZNAK     0x06
  19. #define ZABORT   0x07
  20. #define ZFIN     0x08
  21. #define ZRPOS    0x09
  22. #define ZDATA    0x0a
  23. #define ZEOF     0x0b
  24. #define ZFERR    0x0c
  25. #define ZCRC     0x0d
  26. #define ZCHALLENGE  0x0e
  27. #define ZCOMPL   0x0f
  28. #define ZCAN     0x10
  29. #define ZFREECNT 0x11
  30. #define ZCOMMAND 0x12
  31. #define ZSTDERR  0x13
  32.  
  33. /* frame ends */
  34. #define ZCRCE    0x68
  35. #define ZCRCG    0x69
  36. #define ZCRCQ    0x6a
  37. #define ZCRCW    0x6b
  38. #define GOTOR    0x100
  39. #define GOTCRCE  (GOTOR|ZCRCE)
  40. #define GOTCRCG  (GOTOR|ZCRCG)
  41. #define GOTCRCQ  (GOTOR|ZCRCQ)
  42. #define GOTCRCW  (GOTOR|ZCRCW)
  43. #define GOTCAN   (GOTOR|CAN)
  44.  
  45. /* more zmodem constants */
  46. #define ZRUB0    0x6c
  47. #define ZRUB1    0x6d
  48. #define ZOK      0
  49. #define ZTIMEOUT  -1
  50. #define ZERROR   -40
  51. #define RCDO     -41
  52.  
  53. /* byte positions */
  54. #define ZF0      3
  55. #define ZF1      2
  56. #define ZF2      1
  57. #define ZF3      0
  58. #define ZP0      0
  59. #define ZP1      1
  60. #define ZP2      2
  61. #define ZP3      3
  62.  
  63. /* bit masks for ZRINIT */
  64. #define CANFDX   0x01    /* handle full duplex  - YES */
  65. #define CANOVIO  0x02    /* overlay disk and serial I/O - YES */
  66. #define CANBRK   0x04    /* send a break - YES */
  67. #define CANCRY   0x08    /* encrypt/decrypt - NO */
  68. #define CANLZW   0x10    /* LZW compress - NO */
  69. #define CANFC32  0x20    /* use 32 bit CRCs - YES */
  70. #define ESCALL   0x40    /* escapes all control chars - NO */
  71. #define ESC8     0x80    /* escapes the 8th bit - NO */
  72.  
  73. /* bit masks for ZSINIT */
  74. #define TESCCTL  0x40
  75. #define TESC8    0x80
  76.  
  77. /* ZFILE ZF0 */
  78. #define ZCBIN    0x01
  79. #define ZCNL     0x02
  80. #define ZCRESUM  0x03
  81.  
  82. /* ZFILE ZF1 */
  83. #define ZMNEW    0x01
  84. #define ZMCRC    0x02
  85. #define ZMAPND   0x03
  86. #define ZMCLOB   0x04
  87. #define ZMSPARS  0x05
  88. #define ZMDIfF   0x06
  89. #define ZMPROT   0x07
  90.  
  91. /* ZFILE ZF2 */
  92. #define ZTLZW    0x01
  93. #define ZTCRYPT  0x02
  94. #define ZTRLE    0x03
  95.  
  96. /* ZFILE ZF3 */
  97. #define ZCACK1   0x01
  98.